package onlinecalsys.server.database;

import java.rmi.RemoteException;
import java.util.ArrayList;

public interface DatabaseLayer {

	boolean storeAppointment(String username, String date, int hour,
			String Appointment);

	ArrayList<ArrayList<String>> getAppointments(String date, String username)
			throws InterruptedException;

	boolean deleteAppointment(int appointmentId, String username);

	boolean usernameChecking(String username, String password);

	boolean shareAppointment(String username, int id, String shareWithUsername);
	
	ArrayList<ArrayList<String>> getSharedAppointments(String username);
	
	boolean saveNote(String note,String username) ;
	String getNote(String username);
	
	boolean createUser(String username, String password);
	
}
